﻿<%--

--%>
<%@page import="entity.User"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>User Modify</title>
<meta name="keywords" content="keyword1, keyword2, keyword3, etc..." />
<meta name="description" content="Description of website here..." />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="main">
  <div id="interior">
    <div id="top">
      <div id="logo"><img src="images/logo.gif" alt="Company Name" border="0" onclick="javascript:window.location.href='cancel.action'"/></div>
      <div id="slogan"><img src="images/slogan.gif" alt="Company Slogan" /></div>
    </div>
    <div class="clear"></div>
    <div id="mid">
      <div id="left">
        <div id="navbar">
          <ul>
             <li class="button1"><a href="userSearch.action">Query</a></li>
            <li class="button2"><a href="userUpdate.action">Modify</a></li>
            <li class="button3"><a href="jobtest.action">Early Warning</a></li>
			 <li class="button4"><a href="jobinfo.action">Inquire Employment</a></li>
          </ul>
        </div>
      </div>
      <div id="right"><img src="images/photo-main.jpg" alt="Business Solutions" /></div>
      <div id="maintext">
         <p><div id="apDiv1">
             <jsp:useBean id="user" class="entity.User" scope="page" /><!--调取用户对象 -->
          <% user = (User)request.getSession().getAttribute("USER"); %><!--调取用户对象 -->

            <form action="updateUserInfo.action" method="post">
               
                <table width="400" height="600" border="0" align="center">






                    
<tr>

                       <td width="50" align="right">Name：</td>
                        <td width="150">
                            <label>
                                <input name="name" type="text" class="STYLE2" id="textfield" size="9" value=<%=user.getUsername()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Advanced mathematics（A）：</td>
                        <td width="150">
                            <label>

                                <input name="mathA1" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getMathA1()%>>
                            </label>
                        </td>
                      </tr>


                    <tr>

                        <td width="50" align="right">Advanced mathematics（B）：</td>
                        <td width="150">
                            <label>

                                <input name="mathA2" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getMathA2()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Linear algebra：</td>
                        <td width="150">
                            <label>

                                <input name="la" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getLa()%>>
                            </label>
                        </td>
                      </tr>

                      <tr>

                        <td width="50" align="right">Physics（A）：</td>
                        <td width="150">
                            <label>

                                <input name="phyA1" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getPhyA1()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Information Science：</td>
                        <td width="150">
                            <label>

                                <input name="intro" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getIntro()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">C programming language：</td>
                        <td width="150">
                            <label>

                                <input name="c" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getC()%>>
                            </label>
                        </td>
                        <td width="50" align="right">C programming language practice：</td>
                        <td width="150">
                            <label>

                                <input name="cexp" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getCexp()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">College English Band One：</td>
                        <td width="150">
                            <label>

                                <input name="e1" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getE1()%>>
                            </label>
                        </td>
                        <td width="50" align="right">College English Band Two：</td>
                        <td width="150">
                            <label>

                                <input name="e2" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getE2()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">First year average scores：</td>
                        <td width="150">
                            <label>

                                <input name="ave1" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getAve1()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Number of fail：</td>
                        <td width="150">
                            <label>

                                <input name="fail" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getFail()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Grade one scores ranking：</td>
                        <td width="150">
                            <label>

                                <input name="rank1" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getRank1()%>>
                            </label>
                        </td>
                        <td width="50" align="right">CET4：</td>
                        <td width="150">
                            <label>

                                <input name="cet4" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getCet4()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Stochastic Process：</td>
                        <td width="150">
                            <label>

                                <input name="pro" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getPro()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Digital Logic Circuit：</td>
                        <td width="150">
                            <label>

                                <input name="phyA2" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getPhyA2()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Digital Logic Circuit：</td>
                        <td width="150">
                            <label>

                                <input name="circuit" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getCircuit()%>>
                            </label>
                        </td>
                        <td width="50" align="right">College English Band Three：</td>
                        <td width="150">
                            <label>

                                <input name="e3" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getE3()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">College English Band Four：</td>
                        <td width="150">
                            <label>

                                <input name="e4" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getE4()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Second year average scores：</td>
                        <td width="150">
                            <label>

                                <input name="ave2" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getAve2()%>>
                            </label>
                        </td>
                      </tr>



 
<tr>

                        <td width="50" align="right">Grade two scores ranking：</td>
                        <td width="150">
                            <label>

                                <input name="rank2" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getRank2()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Operating System：</td>
                        <td width="150">
                            <label>

                                <input name="os" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getOs()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Third year average scores：</td>
                        <td width="150">
                            <label>

                                <input name="ave3" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getAve3()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Grade three scores ranking：</td>
                        <td width="150">
                            <label>

                                <input name="rank3" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getRank3()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Fourth year average scores：</td>
                        <td width="150">
                            <label>

                                <input name="ave4" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getAve4()%>>
                            </label>
                        </td>
                        <td width="50" align="right">Grade four scores ranking：</td>
                        <td width="150">
                            <label>

                                <input name="rank4" type="text" class="STYLE2" id="textfield" size="4" value=<%=user.getRank4()%>>
                            </label>
                        </td>
                      </tr>


                      <tr>

                        <td width="50" align="right">Specialized subject：</td>
                        <td colspan=3 align="left" >
                            <%
                            int xi = Integer.valueOf(user.getSub());
                            String xixi="";
                            switch( xi){
                                   case 1: xixi="Computer science and technology (normal)"; break;
                                   case 2: xixi="Computer science and technology"; break;
                                   case 3: xixi="Information management and information system"; break;
                                   case 4: xixi="Information management and information system(electronic commerce)"; break;
                                   case 5: xixi="Electronic information engineering"; break;
                                   case 6: xixi="Information engineering (intelligent science and technology)"; break;
                                   case 7: xixi="Information engineering"; break;
                                   case 8: xixi="Software engineering"; break;
                                   default: break;
                               }
                            
                           %>
                           <input name="sub" type="text" class="STYLE2" id="textfield" size="30" disabled="true"  value=<%=xixi%>>


                      </td>
                      </tr>


                      <tr>
                        <td width="50" align="right">Student category：</td>
                        <td colspan=3 align="left">

                           <%
                            int leibie = Integer.valueOf(user.getIsteacher());
                            String leibie2="";
                            switch( leibie){
                                   case 1: leibie2="normal class"; break;
                                   case 2: leibie2="not normal class"; break;
                                   default: break;
                               }

                           %>
                            <input name="isteacher" type="text" class="STYLE2" id="textfield" size="4" disabled="true"  value=<%=leibie2%>>

                      </td>
                      </tr>






















                   

                    <tr>

                        <td colspan=4 align="center">
                            <!-- <a href="">注册</a> -->
                            <input name="button" type="submit" class="STYLE4" id="button2" value="confirm" />
                        </td>
                    </tr>
              </table>

            </form>
        </div></p>
        <p>&nbsp;</p>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>


</body>
</html>

                    